package com.xhj.springbootproject.controller;

import com.xhj.springbootproject.constant.object.BasicUserVO;
import com.xhj.springbootproject.service.intf.BasicUserService;
import com.xhj.springbootproject.util.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：Xionghaijun
 * @date ：Created in 2019/7/4 11:02 AM
 * @description：
 */
@RestController
@RequestMapping("/user")
public class UserInfoController {

    @Autowired
    private BasicUserService basicUserService;

    @RequestMapping(value = "/insert", method = RequestMethod.POST)
    public JsonResult createUser(BasicUserVO basicUserVO) {
        return basicUserService.insertUser(basicUserVO);
    }
}
